<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 18-12-18
 * Time: 上午10:50
 */

namespace common\models;


/**
 * Class MultiMediaOrderLog
 * @package common\models
 *
 * @property MultiMediaOrderBankBackLog[] $multiMediaOrderBankBackLogs
 * @property MultiMediaOrder $multiMediaOrder
 */
class MultiMediaOrderLog extends \common\models\base\MultiMediaOrderLog
{
    /**
     * @return \yii\db\ActiveQuery
     */
    public function getMultiMediaOrderBankBackLogs()
    {
        return $this->hasMany(MultiMediaOrderBankBackLog::className(), ['for_serial_number' => 'serial_number']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getMultiMediaOrder()
    {
        return $this->hasOne(MultiMediaOrder::className(), ['id' => 'multi_media_order_id']);
    }
}